package com.eightbears.beboy.adapter;

import android.widget.ImageView;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.eightbears.beboy.entity.ShopDetailEntity;
import com.eightbears.beboy.R;
import com.eightbears.beboy.base.util.CommonUtils;
import com.socks.library.KLog;

public class ShopManagersAdapter extends BaseQuickAdapter<ShopDetailEntity.Managers, BaseViewHolder> {

    public ShopManagersAdapter() {
        super(R.layout.item_managers, null);
    }

    @Override
    protected void convert(BaseViewHolder baseViewHolder, ShopDetailEntity.Managers managers) {
        baseViewHolder.setText(R.id.tv_name, managers.getName())
                .addOnClickListener(R.id.ll_root);
        CommonUtils.loadImageView(mContext, managers.getCover(), R.mipmap.default_icon,
                (ImageView) baseViewHolder.getView(R.id.iv_user_head));

    }
}
